import java.util.PriorityQueue;


class   Student{
    public int age;
    public String name;

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }
}
public class Test {



    public static void main(String[] args) {
        //小根堆
        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.offer(10);
        priorityQueue.offer(2);
        System.out.println(priorityQueue.poll());


        PriorityQueue<Student> priorityQueue2 = new PriorityQueue<>();

        /*priorityQueue2.offer(new Student("zhangshan",24));
        priorityQueue2.offer(new Student("lishi",23));*/

    }



    public static void main1(String[] args) {
        TestHeap testHeap = new TestHeap();
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        testHeap.initElem(array);
        testHeap.createHeap();
        // testHeap.createHeap2();
        //   testHeap.offer(80);
        System.out.println("================");

    }
}
